﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

using Twilio.TwilML.BaseTypes;

namespace Twilio.TwilML
{
    public enum Reason
    {
        [XmlEnum("rejected")] Rejected,
        [XmlEnum("busy")] Busy,
    }

    public class Reject : ResponseVerb
    {
        [XmlAttribute("reason"), DefaultValue(Reason.Rejected)]
        public Reason Reason { get; set; }

        public Reject() 
        {
            Reason = Reason.Rejected;
        }
        public Reject(Reason reason)
        {
            Reason = reason;
        }
    }
}
